home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- edited with XML Spy v3.5 NT beta 1 build Nov 10 2000 (http://www.xmlspy.com) by Alexander Falk (Altova, Inc.) -->
- <xsd:schema targetNamespace="http://www.xmlspy.com/schemas/Altova/orgchart" xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns="http://www.xmlspy.com/schemas/Altova/orgchart">
- <xsd:notation name="Altova-Orgchart" public="http://www.xmlspy.com/schemas/Altova/orgchart"/>
- <xsd:complexType name="DivisionType">
- <xsd:sequence>
- <xsd:element name="Name" type="xsd:string"/>
- <xsd:element name="Established" type="xsd:year" minOccurs="0"/>
- <xsd:element name="URL" type="xsd:uriReference" minOccurs="0"/>
- <xsd:element name="Manager" type="xsd:string" minOccurs="0"/>
- <xsd:element name="Desc" type="xsd:string"/>
- <xsd:element ref="Person" maxOccurs="unbounded"/>
- </xsd:sequence>
- <xsd:attribute name="ProfitCenter" use="required">
- <xsd:simpleType>
- <xsd:restriction base="xsd:NMTOKEN">
- <xsd:enumeration value="no"/>
- <xsd:enumeration value="yes"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:attribute>
- </xsd:complexType>
- <xsd:element name="Altova">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="Name" type="xsd:string"/>
- <xsd:element name="Division" type="DivisionType" maxOccurs="unbounded"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="Person" type="PersonType"/>
- <xsd:element name="VIP" substitutionGroup="Person">
- <xsd:annotation>
- <xsd:documentation>A very important person working for the company</xsd:documentation>
- </xsd:annotation>
- <xsd:complexType>
- <xsd:complexContent>
- <xsd:extension base="PersonType">
- <xsd:sequence>
- <xsd:element name="Club" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>Association with a VIP or royal club</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="IQ" use="required">
- <xsd:annotation>
- <xsd:documentation>IQ of VIPs are requried to be above 120</xsd:documentation>
- </xsd:annotation>
- <xsd:simpleType>
- <xsd:restriction base="xsd:int">
- <xsd:minInclusive value="120"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:attribute>
- </xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
- </xsd:element>
- <xsd:complexType name="PersonType">
- <xsd:annotation>
- <xsd:documentation>A person working for the company</xsd:documentation>
- </xsd:annotation>
- <xsd:sequence>
- <xsd:element name="ID">
- <xsd:annotation>
- <xsd:documentation>Unique identifier for each person</xsd:documentation>
- </xsd:annotation>
- <xsd:simpleType>
- <xsd:restriction base="xsd:ID">
- <xsd:pattern value="\p{L}{5}\d{2}"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:element>
- <xsd:element name="Last" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>Last (family) name of person</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="First" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>First (given) name of person</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="Title" type="xsd:string" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>Academic (or other) title</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="PhoneExt" type="xsd:int">
- <xsd:annotation>
- <xsd:documentation>Phone extension for direct dialing</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="EMail" type="emailType">
- <xsd:annotation>
- <xsd:documentation>E-Mail address on the Internet (must be in name@company.net format)</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="Mgr" type="xsd:boolean" use="required">
- <xsd:annotation>
- <xsd:documentation>Is this person employed in a managerial role</xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="Prg" type="xsd:boolean" use="required">
- <xsd:annotation>
- <xsd:documentation>Is this person capable of programming</xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="Des" type="xsd:boolean" use="optional">
- <xsd:annotation>
- <xsd:documentation>Does this person have design authority</xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- </xsd:complexType>
- <xsd:simpleType name="emailType">
- <xsd:restriction base="xsd:string">
- <xsd:pattern value="[\p{L}_]+(\.[\p{L}_]+)*@[\p{L}_]+(\.[\p{L}_]+)+"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:schema>
-